local unitDefs = {

C_ASSAULTHELICOPTER = {
  name                = "Assault Helicopter",
  description         = "Heavy Assault Helicopter",
  
  objectName          = "c_assaulthelicopter.obj",
  script              = "c_assaulthelicopter.lua",
  buildPic            = "c_assaulthelicopter.png",
  iconType            = "helicopter",  
  category            = [[AIR HELICOPTER WEAPON]],
  
  -- Cost
  buildCostMetal      = 400,  
  buildCostEnergy     = 0,
  buildTime           = 4000,
  mass                = 150,
  power               = 400,

  -- Damage
  maxDamage           = 1200,
  idleAutoHeal        = 5,
  idleTime            = 900,  

  -- Flanking Bonus
  flankingBonusMode   = 3,
  flankingBonusDir    = [[0 -1 0]],
  flankingBonusMin    = 0.8,
  flankingBonusMax    = 1.2,	 
  
  -- Movement and Pathfinding
  footprintX          = 3,
  footprintZ          = 3,  
  maxVelocity         = 3.0,
  acceleration        = 0.1,
  brakeRate           = 0.01,
  turnRate            = 500,
  turnInPlace         = true,  
  maxSlope            = 15,
  maxWaterDepth       = 0,
  cruiseAlt           = 100,

  -- Abilities
  canMove             = true,  
  canAttack           = true,
  canGuard            = true,
  canPatrol           = true,
  canFly              = true,
  hoverAttack         = true,
  airStrafe           = true,
  --bankingAllowed      = true,

  -- Detection  
  sightDistance       = 700,
  seismicSignature    = 0,  

  -- Weapons
  explodeAs           = "UNIT_EXPLOSION_SMALL1",  
  selfDestructAs      = "UNIT_SELFD_SMALL1", 
  noChaseCategory     = [[SUB PLANE]],  

  weapons = {
    [1] = { def = "C_CANNON_AUTOCANNON_2BARRELS", mainDirAngle =   0, maxAngleDif = 170, },
    [2] = { def = "C_CANNON_AUTOCANNON_1BARREL" , mainDirAngle = 180, maxAngleDif = 170, },
    [3] = { def = "C_GRENADE_HELICOPTER"        , mainDirAngle =   0, maxAngleDif =  40, },
    [4] = { def = "C_GRENADE_HELICOPTER"        , mainDirAngle =   0, maxAngleDif =  40, },
  },
  
  sfxtypes = {
    explosiongenerators = {
      --"custom:FLARE_CANNON_LIGHT",  --"custom:FLARE_CANNON_HEAVY",
    },
  },  

  customParams = {
    wreckModels = { "3x3d.3do", "3x3d.3do" },  --"c_assaulthelicopter_wreck1.s3o", "c_assaulthelicopter_wreck2.s3o"
    heapModels = { "3x3d.3do" },

	  soundCategory = "HELICOPTER1",
  
	  armorThickness = 30,
	
	  lightDamageChance = 0.0,	
	  mediumDamageChance = 0.5,
	  heavyDamageChance = 0.5,
  },
},
}

return lowerkeys(unitDefs)